import { createRouter, createWebHistory } from 'vue-router'
import Register from '../views/user/Register.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/register', name: 'Register', component: Register },
    { path: '/', name: 'comment', component: () => import('../views/Comment/Comment.vue') },
    { path: '/login', name: 'login', component: () => import('../views/user/Login.vue') }
  ]
})

export default router
